<!DOCTYPE html>
<html lang="zh-CN"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title th:text="${title}">错误页面</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(to right top, #f8f9fa, #e9ecef);
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            text-align: center;
        }

        .error-container {
            max-width: 500px;
            padding: 2rem;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        h1 {
            font-size: 5rem;
            margin: 0 0 1rem;
            color: #dc3545;
        }

        h2 {
            margin-top: 0;
            font-size: 2rem;
            color: #555;
        }

        p {
            font-size: 1rem;
            color: #777;
            margin-bottom: 2rem;
        }

        a {
            text-decoration: none;
            color: #007bff;
            font-weight: bold;
        }

        a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div class="error-container">
    <h1 th:text="${errorCode}">404</h1>
    <h2 th:text="${errorMsg}">页面未找到</h2>
    <p th:text="${errorDesc}">您访问的页面不存在或已被移除。</p>
    <p><a th:href="@{/}">返回首页</a></p>
</div>
</body>
</html>
